package com.hamilton.erik.pt.mobile.android;

import android.app.Application;
import android.content.Context;

public class PtApp extends Application {
    private static PtApp instance;
    private static Context appContext;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;

        this.setAppContext(getApplicationContext());
    }

    public static PtApp getInstance(){
        return instance;
    }
    
    public static Context getAppContext() {
        return appContext;
    }
    
    public void setAppContext(Context appContext) {
        PtApp.appContext = appContext;
    }
}